package com.hcloud.hcloudbasedemo

import com.hcloud.baselib.http.Res
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST


interface TestApi {
    companion object {
        const val baseUrl = "192.168.1.220:7001/"
    }

    /**
     * 登录
     */
    @FormUrlEncoded
    @POST("/app/login")
    suspend fun login(
        @Field("username") username: String,
        @Field("password") password: String
    ): Res<LoginRes>
}